<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="../js/vue.min.js" ></script>
</head>
<body>
<div id="app">
    <lyj v-for="item in items" v-bind:lyj="item"></lyj>
</div>
<script>
  Vue.component("lyj",{
    props:["lyj"],
    template:'<h1>{{lyj}}</h1>'
  });
  let app=new Vue({
    el:'#app',
    data:{
      items:['java','mysql','oracle','linux']
    }
  });

</script>

</body>
</html>